#ifndef ASTNODE_ASSIGNEMENT_STATEMENT_H
#define ASTNODE_ASSIGNEMENT_STATEMENT_H
#include "AstNode.h"

class AstNodeExpression;

class AstNodeAssignment : public AstNode
{
  public:
    AstNodeAssignment(AstNode * lvalue, AstNodeExpression * expr);
    virtual void compile(class CompileVisitor*);
    virtual void dump(int level);

    inline AstNode *           getLValue() { return lvalue; };
    inline AstNodeExpression * getExpression() { return expr; };

    //virtual int  compile(ClassFile * klass, MethodInfo * method);

  private:
    AstNode *           lvalue;
    AstNodeExpression * expr;
};

#endif
